//
//  Contect.m
//  OC05 _ 数组_字典_集合
//
//  Created by dllo on 15/12/4.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Contect.h"

@implementation Contect

- (instancetype)initWithName:(NSString *)name
                 phonenumber:(NSString *)phonenumber{
    self = [super init];
    if (self) {
        _name = name;
        _phonenumber = phonenumber;
        /*根据名字可以得到组名*/
        _group = [name substringToIndex:1];

    }
        
    return self;
}

- (void)info{
    
    NSLog(@"%@,%@,%@,%@,%ld",_name,_phonenumber,_address,_sex,_age);
}






@end
